# -*- coding: utf-8 -*-
from gevent import monkey; monkey.patch_all(Event=True)
from mongoengine import connect
import setting

connect(
    db=setting.db['database'],
    host='mongodb://'+setting.db['username']+':'+setting.db['password']+'@'+setting.db['host']
)
